package com.fw.system.admin.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fw.annotation.Excel;
import com.fw.core.domain.BaseEntity;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 题库对象 tb_answer
 *
 * @author yanwei
 * @date 2023-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_answer")
@ApiModel(value="题库", description="题库表")
public class TbAnswer implements Serializable
        {
private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty(value = "${comment}")
        @TableId("id")
    private String id;

    /** 题目 */
    @ApiModelProperty(value = "${comment}")
            @Excel(name = "题目")
        @TableField("answer_title")
    private String answerTitle;

    /** 问题答案选项，逗号隔开 */
    @ApiModelProperty(value = "题目")
            @Excel(name = "问题答案选项，逗号隔开")
        @TableField("answer_select")
    private String answerSelect;

    /** 正确答案解析 */
    @ApiModelProperty(value = "问题答案选项，逗号隔开")
            @Excel(name = "正确答案解析")
        @TableField("answer_result")
    private String answerResult;

    /** $column.columnComment */
    @ApiModelProperty(value = "正确答案解析")
        @TableField("create_time")
    private Date createTime;

    /** $column.columnComment */
    @ApiModelProperty(value = "正确答案解析")
        @TableField("create_by")
    private String createBy;

    /** 1单选 2多选 */
    @ApiModelProperty(value = "正确答案解析")
            @Excel(name = "1单选 2多选")
        @TableField("answer_type")
    private Long answerType;

     @TableField(exist = false)
    private List<TbAnswerDetail> tbAnswerDetailList;



}
